package com.example.back.Repository;

import com.example.back.Entity.Comment;
import com.example.back.Entity.Comment;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentRepository extends JpaRepository<Comment,Long> {
    List<Comment> findAllByCommentProductId(long CPId,Sort by);
    boolean deleteByCommentId(long cid);
}
